package com.ideaaedi.springcloud.jd.commonspring.validator;

import com.ideaaedi.springcloud.jd.commonds.constant.BaseConstant;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 校验当前用户能操作指定租户的数据
 *
 * @see SysValidator#verifyCouldUpdateThisTenant(String)
 * @since 2021.0.5.B
 */
@Target(value = ElementType.METHOD)
@Retention(value = RetentionPolicy.RUNTIME)
public @interface ValidTenant {
    
    /**
     * 租户字段
     */
    String field() default BaseConstant.TENANT;
}
